﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WestWorldRemake.Messaging;
using WestWorldRemake.States;

namespace WestWorldRemake.Characters
{
    public class MinersWife : BaseGameEntity
    {
        private StateMachine<MinersWife> m_pStateMachine;
        private LocationType m_Location;
        private bool m_bCooking;

        public MinersWife(string name, ConsoleColor color)
            : base(name, color)
        {
            m_pStateMachine = new StateMachine<MinersWife>(this, MinersWifeOwned.WifesGlobalState.Instance);
            m_bCooking = false;
        }

        public StateMachine<MinersWife> StateMachine
        {
            get
            {
                return m_pStateMachine;
            }
        }
        public override void Update()
        {
            m_pStateMachine.Update();
        }

        public override Iffy HandleMessage(Telegram message)
        {
            return m_pStateMachine.HandleMessage(message);
        }

        public LocationType Location
        {
            get
            {
                return m_Location;
            }
        }
        public void ChangeLocation(LocationType location)
        {
            m_Location = location;
        }

        public bool IsCooking()
        {
            return m_bCooking;
        }
        public void SetCooking(bool val)
        {
            m_bCooking = val;
        }
    }
}
